package com.example.cstr.service;

import com.example.cstr.entity.Announcement;
import com.example.cstr.entity.EducationTrainClass;
import com.example.cstr.entity.Message;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

public interface AnnouncementService {


    int deleteByPrimaryKey(Integer ancId);

    int insert(Announcement record);

    int insertSelective(Announcement record);

    Announcement selectByPrimaryKey(Integer ancId);

    int updateByPrimaryKeySelective(Announcement record);

    int updateByPrimaryKey(Announcement record);

    List<Announcement> selectAllAnnouncement();

    Message PagingSearch(@RequestParam Integer pageNum, @RequestParam Integer size);
}


